import request from '@/utils/request'

export function listGp(query) {
  return request({
    url: '/group/getGroup',
    method: 'get',
    params: query
  })
}

export function insertGroup(data) {
  return request({
    url: '/group/insertGroup',
    method: 'post',
    data
  })
}

export function getDetail(query) {
  return request({
    url: '/group/getDetail',
    method: 'get',
    params: query
  })
}

export function deleteGroup(query) {
  return request({
    url: '/group/deleteGroup',
    method: 'get',
    params: query
  })
}

export function deleteDetail(query) {
  return request({
    url: '/group/deleteDetail',
    method: 'get',
    params: query
  })
}

export function getGroupUser(query) {
  return request({
    url: '/group/getGroupUser',
    method: 'get',
    params: query
  })
}

export function createPlan(data) {
  return request({
    url: '/group/createPlan',
    method: 'post',
    data
  })
}

export function updateDetail(query) {
  return request({
    url: '/group/updateDetail',
    method: 'get',
    params: query
  })
}

